//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.purvar.boot.comm.api.vo;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Min;
import java.io.Serializable;

public class PageQuery<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("当前页")
    @Min(
            value = 0L,
            message = "当前页为整数"
    )
    private int pageNo = 1;
    @ApiModelProperty("每页数量")
    @Min(
            value = 5L,
            message = "每页数量不能低于5"
    )
    private int pageSize = 10;
    private T t;

    public int getPageNo() {
        return this.pageNo;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public T getT() {
        return this.t;
    }

    public void setPageNo(final int pageNo) {
        this.pageNo = pageNo;
    }

    public void setPageSize(final int pageSize) {
        this.pageSize = pageSize;
    }

    public void setT(final T t) {
        this.t = t;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof PageQuery)) {
            return false;
        } else {
            PageQuery<?> other = (PageQuery) o;
            if (!other.canEqual(this)) {
                return false;
            } else if (this.getPageNo() != other.getPageNo()) {
                return false;
            } else if (this.getPageSize() != other.getPageSize()) {
                return false;
            } else {
                Object this$t = this.getT();
                Object other$t = other.getT();
                if (this$t == null) {
                    if (other$t == null) {
                        return true;
                    }
                } else if (this$t.equals(other$t)) {
                    return true;
                }

                return false;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof PageQuery;
    }


    public String toString() {
        return "PageQuery(pageNo=" + this.getPageNo() + ", pageSize=" + this.getPageSize() + ", t=" + this.getT() + ")";
    }

    public PageQuery() {
    }
}
